package com.alan.datasync.enums;

import lombok.Getter;

/**
 * @Author: li_jl
 * @Description: 数据库操作枚举
 * @Date: Created in 2020/6/8 4:53 下午
 */
@Getter
public enum MessageActionEnum {
    /**
     * insert
     */
    INSERT(0, "INSERT"),

    /**
     * update
     */
    UPDATE(1, "UPDATE"),

    /**
     * delete
     */
    DELETE(2, "DELETE"),

    /**
     * unknown
     */
    UNKNOWN(-1, "UNKNOWN");

    private final int index;

    private final String value;

    MessageActionEnum(int index, String value) {
        this.index = index;
        this.value = value;
    }
}